<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SmartCarInformationSystem: include/CompareController.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SmartCarInformationSystem
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('CompareController_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CompareController.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="CompareController_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __COMCON__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __COMCON__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="MapFunc_8h.html">MapFunc.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Compare_8h.html">Compare.h</a>&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="classCompareController.html">    9</a></span>&#160;<span class="keyword">class </span><a class="code" href="classCompareController.html">CompareController</a> {</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classCompareController.html#ae2a83fceb0ce61c9af5e86db8f2f983f">   11</a></span>&#160;        std::unordered_map&lt;std::string,Compare*&gt; <a class="code" href="classCompareController.html#ae2a83fceb0ce61c9af5e86db8f2f983f">compareMap</a>;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        <a class="code" href="classCompare.html">Compare</a>* <a class="code" href="classCompareController.html#ac7b130aeaf9893d89a928b6567aa182b">addCompare</a>(std::string _id,std::string _stuId,std::string _carId);</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        <a class="code" href="classCompareController.html#a0f8b3a59e06449954b080ed72e5d2d02">CompareController</a>();</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        <a class="code" href="classCompareController.html#acc253b55d35b0cb6e134092fc8f29ce7">~CompareController</a>();</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;        <a class="code" href="classCompare.html">Compare</a>* <a class="code" href="classCompareController.html#ac7b130aeaf9893d89a928b6567aa182b">addCompare</a>(<a class="code" href="classStudent.html">Student</a>* stu,<a class="code" href="classSmartCar.html">SmartCar</a>* car);</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classCompareController.html#a59e3ffb005b922d76cad0ba8adabe158">getCompareCount</a>();</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classCompareController.html#a604b800307b2aaf78edeada402f18ac0">listAllCompare</a>(<a class="code" href="classCompare.html">Compare</a>* (&amp;compareList)[]);</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classCompareController.html#aaa101d02a5d3e0b1f17db0326332c365">getCompareCountByCarId</a>(std::string carId);</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classCompareController.html#a1f947e9b957c90f93c3850b35876c71b">findCompareByCarId</a>(std::string carId,<a class="code" href="classCompare.html">Compare</a>* (&amp;compareList)[]);</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classCompareController.html#a8bbfa8b29de9c54e0b7db2b713c14a4e">deleteCompare</a>(std::string _id);</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classCompareController.html#a8bbfa8b29de9c54e0b7db2b713c14a4e">deleteCompare</a>(<a class="code" href="classCompare.html">Compare</a>* _compare);</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <a class="code" href="classCompare.html">Compare</a>* <a class="code" href="classCompareController.html#a274dcad6133a17814cf3bdb1c17f5e15">strToCompare</a>(std::istringstream &amp;iss);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;};</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aCompare_8h_html"><div class="ttname"><a href="Compare_8h.html">Compare.h</a></div></div>
<div class="ttc" id="aMapFunc_8h_html"><div class="ttname"><a href="MapFunc_8h.html">MapFunc.h</a></div></div>
<div class="ttc" id="aclassCompareController_html"><div class="ttname"><a href="classCompareController.html">CompareController</a></div><div class="ttdef"><b>Definition:</b> CompareController.h:9</div></div>
<div class="ttc" id="aclassCompareController_html_a0f8b3a59e06449954b080ed72e5d2d02"><div class="ttname"><a href="classCompareController.html#a0f8b3a59e06449954b080ed72e5d2d02">CompareController::CompareController</a></div><div class="ttdeci">CompareController()</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:6</div></div>
<div class="ttc" id="aclassCompareController_html_a1f947e9b957c90f93c3850b35876c71b"><div class="ttname"><a href="classCompareController.html#a1f947e9b957c90f93c3850b35876c71b">CompareController::findCompareByCarId</a></div><div class="ttdeci">void findCompareByCarId(std::string carId, Compare *(&amp;compareList)[])</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:62</div></div>
<div class="ttc" id="aclassCompareController_html_a274dcad6133a17814cf3bdb1c17f5e15"><div class="ttname"><a href="classCompareController.html#a274dcad6133a17814cf3bdb1c17f5e15">CompareController::strToCompare</a></div><div class="ttdeci">Compare * strToCompare(std::istringstream &amp;iss)</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:97</div></div>
<div class="ttc" id="aclassCompareController_html_a59e3ffb005b922d76cad0ba8adabe158"><div class="ttname"><a href="classCompareController.html#a59e3ffb005b922d76cad0ba8adabe158">CompareController::getCompareCount</a></div><div class="ttdeci">int getCompareCount()</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:32</div></div>
<div class="ttc" id="aclassCompareController_html_a604b800307b2aaf78edeada402f18ac0"><div class="ttname"><a href="classCompareController.html#a604b800307b2aaf78edeada402f18ac0">CompareController::listAllCompare</a></div><div class="ttdeci">void listAllCompare(Compare *(&amp;compareList)[])</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:38</div></div>
<div class="ttc" id="aclassCompareController_html_a8bbfa8b29de9c54e0b7db2b713c14a4e"><div class="ttname"><a href="classCompareController.html#a8bbfa8b29de9c54e0b7db2b713c14a4e">CompareController::deleteCompare</a></div><div class="ttdeci">bool deleteCompare(std::string _id)</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:75</div></div>
<div class="ttc" id="aclassCompareController_html_aaa101d02a5d3e0b1f17db0326332c365"><div class="ttname"><a href="classCompareController.html#aaa101d02a5d3e0b1f17db0326332c365">CompareController::getCompareCountByCarId</a></div><div class="ttdeci">int getCompareCountByCarId(std::string carId)</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:49</div></div>
<div class="ttc" id="aclassCompareController_html_ac7b130aeaf9893d89a928b6567aa182b"><div class="ttname"><a href="classCompareController.html#ac7b130aeaf9893d89a928b6567aa182b">CompareController::addCompare</a></div><div class="ttdeci">Compare * addCompare(std::string _id, std::string _stuId, std::string _carId)</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:24</div></div>
<div class="ttc" id="aclassCompareController_html_acc253b55d35b0cb6e134092fc8f29ce7"><div class="ttname"><a href="classCompareController.html#acc253b55d35b0cb6e134092fc8f29ce7">CompareController::~CompareController</a></div><div class="ttdeci">~CompareController()</div><div class="ttdef"><b>Definition:</b> CompareController.cpp:10</div></div>
<div class="ttc" id="aclassCompareController_html_ae2a83fceb0ce61c9af5e86db8f2f983f"><div class="ttname"><a href="classCompareController.html#ae2a83fceb0ce61c9af5e86db8f2f983f">CompareController::compareMap</a></div><div class="ttdeci">std::unordered_map&lt; std::string, Compare * &gt; compareMap</div><div class="ttdef"><b>Definition:</b> CompareController.h:11</div></div>
<div class="ttc" id="aclassCompare_html"><div class="ttname"><a href="classCompare.html">Compare</a></div><div class="ttdef"><b>Definition:</b> Compare.h:9</div></div>
<div class="ttc" id="aclassSmartCar_html"><div class="ttname"><a href="classSmartCar.html">SmartCar</a></div><div class="ttdef"><b>Definition:</b> SmartCar.h:17</div></div>
<div class="ttc" id="aclassStudent_html"><div class="ttname"><a href="classStudent.html">Student</a></div><div class="ttdef"><b>Definition:</b> Student.h:9</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="CompareController_8h.html">CompareController.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
